package cc.SSM.utils;

import java.util.Random;

/**
 * Created by zhonglin on 2016/7/18.
 */
public class UsernamePasswordInviteUtil {

    public static String getUserName(){
        String username = "JX";
        username = username+ getRandom();
        return  username;
    }

    public static String getRandom(){
        Random random = new Random();
        String password = "";
        for (int i = 0; i < 6; i++){
            password += random.nextInt(10);
        }
        return password;
    }

    public static  String getInviteCode(){
        return getRandom();
    }

}
